def success_response(data=None, status_code=200):
    response = {
        'success': True,
        'data': data
    }
    return response, status_code

def error_response(message, status_code=400):
    response = {
        'success': False,
        'message': message
    }
    return response, status_code